package com.cn.wanxi.util.dao.impl;

import com.cn.wanxi.util.dao.INavDao;
import com.cn.wanxi.util.model.CommunalTitle;
import com.cn.wanxi.util.model.ContactModel;
import com.cn.wanxi.util.model.LogoModel;
import com.cn.wanxi.util.model.NavModel;

import java.util.ArrayList;
import java.util.List;

public class NavDao implements INavDao {
//    public String[] herf ={"/school","/about","/news","/Course-elementary","/booking","/contact"};
//    public String[] title ={"首页","关于我们","新闻中心","课程中心","在线预约","联系我们"};
//    导航跳转链接
    @Override
    public List<NavModel> Nav() {
        List<NavModel> navDao = new ArrayList<>();
        NavModel home =new NavModel("/school","首页");
        NavModel aboutUs = new NavModel("/about","关于我们");
        NavModel news = new NavModel("/news","新闻中心");
        NavModel course = new NavModel("/CourseElementaryServlet","课程中心");
        NavModel booking = new NavModel("/booking","在线预约");
        NavModel contact = new NavModel("/contact","联系我们");
        navDao.add(home);
        navDao.add(aboutUs);
        navDao.add(news);
        navDao.add(course);
        navDao.add(booking);
        navDao.add(contact);
        return navDao;
    }
//导航标题
    @Override
    public LogoModel Logo() {
        LogoModel logo = new LogoModel("../img/nrq0.jpg");
//         LogoModel phoneLogo =new LogoModel("");
//        LogoModel emilLofo = new LogoModel("../img/xwri.png");
        return logo;
    }

    @Override
    public List<ContactModel> contac() {
        List<ContactModel> contacts = new ArrayList<>();
        ContactModel phone =new ContactModel("../img/a0gm.jpg","4000-000-000");
        ContactModel emile =new ContactModel("./img/xwri.png","xox@163.com");
        contacts.add(phone);
        contacts.add(emile);
        return contacts;
    }

    @Override
    public List<CommunalTitle> communalTitle() {
        List<CommunalTitle> communalTitles = new ArrayList<>();
        CommunalTitle about = new CommunalTitle("关于我们","ABOUT US");
        CommunalTitle news = new CommunalTitle("新闻中心","NEWS CENTER");
        CommunalTitle curriculum = new CommunalTitle("课程中心","CURRICULUM CENTER");
        CommunalTitle booking = new CommunalTitle("在线预约","ONLINE BOOKING");
        CommunalTitle contact = new CommunalTitle("联系我们","CONTACT US");
        communalTitles.add(about);
        communalTitles.add(news);
        communalTitles.add(curriculum);
        communalTitles.add(booking);
        communalTitles.add(contact);
        return communalTitles;
    }
}

